#ifndef DDEFECT_H
#define DDEFECT_H

#include "DRetangle.h"
#include "DPosition.h"
#include "DEntity.h"

/*****************************************************************
 * 
 *
 *
 *****************************************************************/
class DDefect : public DEntity
{
public:

	DDefect();
	DDefect( const char *name );
	virtual ~DDefect();
	
	inline virtual long getID() { return m_id; }
	inline virtual void setID(long id) { m_id = id; }

	virtual void setAbsPos( double x, double y );
	virtual void setAbsPosX( double x );
	virtual void setAbsPosY( double y );
	
	virtual void setRelPos( double x, double y );
	virtual void setRelPosX( double x );
	virtual void setRelPosY( double y);
	
	
	inline virtual int setIndexX( int xIndex ) {  m_xIndex = xIndex; }
	inline virtual int setIndexY( int yIndex ) {  m_yIndex = yIndex;  }
	
	inline virtual int getIndexX() {	return m_xIndex;	}
	inline virtual int getIndexY() {	return m_yIndex;	}
	
	inline virtual void setSizeY( double ySize ) { m_ySize = ySize; }
	inline virtual void setSizeX( double xSize ) { m_xSize = xSize; }
	
	inline virtual double getSizeX() { return m_xSize; }
	inline virtual double getSizeY() { return m_ySize; }
	
	
	inline virtual void setTestNo( int no ) { m_testNo = no; }
	inline virtual int  getTestNo(){ return m_testNo; };
	
	inline virtual void setOverlaid( bool b ) { m_overlaid = b ; }
	inline virtual bool getOverlaid() { return m_overlaid; }

private:	
	long m_id;			// DEFECTID
	
	DPosition m_relPos
	DPosition m_absPos;	//
	
	int m_xSize;
	int m_ySize;
	int m_xIndex;
	int m_yIndex;
	int m_testNo;
	bool m_overlaid;
};














#endif